Bitwise operators perform operations on the binary representations of numbers. They treat their operands as a sequence of 32 bits (zeroes and ones) and return standard JavaScript numerical values.
let a = 5; // 0101
let b = 1; // 0001
console.log(a & b); // 0001 (1)
let a = 5; // 0101
let b = 1; // 0001
console.log(a | b); // 0101 (5)
let a = 5; // 0101
let b = 1; // 0001
console.log(a ^ b); // 0100 (4)
let a = 5; // 0101
console.log(~a); // 1010 (-6)
let a = 5; // 0101
console.log(a << 1); // 1010 (10)
let a = 5; // 0101
console.log(a >> 1); // 0010 (2)
let a = 5; // 0101
console.log(a >>> 1); // 0010 (2)
For more detailed information, you can check out resources like W3Schools and MDN Web Docs.